let data = {
    list: [
        {
            "stuNum": "1",
            "stuName": "aaa",
            "stuCollege": "计算机",
            "stuMajor": "电脑",
            "stuClass": "1班",
            "stuEntrace": "2022-09",
            "stuStatus": "0",
            "createNmae": "1",
            "updateName": "1",
            "createTime": "1",
            "updateTime": "1",
            "id": "1"
        },
        {
            "stuNum": "2",
            "stuName": "bbb",
            "stuCollege": "美术",
            "stuMajor": "画画",
            "stuClass": "2班",
            "stuEntrace": "2022-10",
            "stuStatus": "1",
            "createNmae": "1",
            "updateName": "1",
            "createTime": "1",
            "updateTime": "1",
            "id": "2"
        },
        {
            "stuNum": "3",
            "stuName": "aaa",
            "stuCollege": "生物",
            "stuMajor": "化学",
            "stuClass": "3班",
            "stuEntrace": "2022-11",
            "stuStatus": "2",
            "createNmae": "1",
            "updateName": "1",
            "createTime": "1",
            "updateTime": "1",
            "id": "3"
        },
    ]
};

module.exports = [
    //学生列表
    {
        url: "/user/student/getStudentList",
        type: "post",
        response: config => {
            //参数  config.body
            const { pageIndex = 1, pageSize = 10 } = config.body;
            data.pageIndex = pageIndex;
            data.pageSize = pageSize;
            return {
                statusCode: 200,
                data: data,
                msg: "OK"
            };
        }
    },

    //添加学生
    {
        url: "/Student/addStudent",
        type: "post",
        response: config => {
            //参数  config.body
            const StudentInfo = config.body.StudentInfo;
            console.log('add', StudentInfo);
            return {
                statusCode: "200",
                msg: "成功",
                data: []
            };
        }
    },

    //更新学生
    {
        url: "/Student/updateStudent",
        type: "post",
        response: config => {
            //参数  config.body
            const StudentInfo = config.body.StudentInfo;
            console.log('update', StudentInfo);
            return {
                statusCode: "200",
                msg: "成功",
                data: []
            };
        }
    },


    //删除学生
    {
        url: "/Student/deleteStudent",
        type: "post",
        response: config => {
            //参数  config.body
            const id = config.body.id;
            console.log('del', id);
            return {
                statusCode: "200",
                msg: "成功",
                data: []
            };
        }
    }
];
